<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="PyfntbpedidperEditDlg" widgetVar="PyfntbpedidperEditDialog" modal="true" resizable="false" appendToBody="true" header="#{myBundle.EditPyfntbpedidperTitle}">

            <h:form id="PyfntbpedidperEditForm">

                <h:panelGroup id="display">
                    <p:panelGrid  columns="2" rendered="#{pyfntbpedidperController.selected != null}">

                        <h:outputLabel value="#{myBundle.EditPyfntbpedidperLabel_pyfntbpedidperid}" for="pyfntbpedidperid" />
                        <h:outputText id="pyfntbpedidperid" value="#{pyfntbpedidperController.selected.pyfntbpedidperid}" />

                         <p:outputLabel value="#{myBundle.EditPyfntbpedidperLabel_pyfntbreqperid}" for="pyfntbreqperid" />
                        <p:selectOneMenu id="pyfntbreqperid" value="#{pyfntbpedidperController.selected.pyfntbreqperid}" required="true" requiredMessage="#{myBundle.EditPyfntbpedidperRequiredMessage_pyfntbreqperid}">
                            <f:selectItem itemLabel="#{myBundle.SelectOneMessage}"/>
                            <f:selectItems value="#{pyfntbreqperController.items}"
                                           var="pyfntbreqperidItem"
                                           itemValue="#{pyfntbreqperidItem}"
                                           itemLabel="#{pyfntbreqperidItem.pyfntbreqperid.toString()}"
                                           />
                            <f:converter binding="#{pyfntbreqperConverter}"/>
                        </p:selectOneMenu>
                         
                        <p:outputLabel value="#{myBundle.EditPyfntbpedidperLabel_mesinicio}" for="mesinicio" />
                        <p:inputText id="mesinicio" value="#{pyfntbpedidperController.selected.mesinicio}" title="#{myBundle.EditPyfntbpedidperTitle_mesinicio}" required="true" requiredMessage="#{myBundle.EditPyfntbpedidperRequiredMessage_mesinicio}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpedidperLabel_mesfin}" for="mesfin" />
                        <p:inputText id="mesfin" value="#{pyfntbpedidperController.selected.mesfin}" title="#{myBundle.EditPyfntbpedidperTitle_mesfin}" required="true" requiredMessage="#{myBundle.EditPyfntbpedidperRequiredMessage_mesfin}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpedidperLabel_mensual}" for="mensual" />
                        <p:inputText id="mensual" value="#{pyfntbpedidperController.selected.mensual}" title="#{myBundle.EditPyfntbpedidperTitle_mensual}" required="true" requiredMessage="#{myBundle.EditPyfntbpedidperRequiredMessage_mensual}"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpedidperLabel_fecharegistro}" for="fecharegistro" />
                        <p:calendar id="fecharegistro" pattern="MM/dd/yyyy HH:mm:ss" value="#{pyfntbpedidperController.selected.fecharegistro}" title="#{myBundle.EditPyfntbpedidperTitle_fecharegistro}" required="true" requiredMessage="#{myBundle.EditPyfntbpedidperRequiredMessage_fecharegistro}" showOn="button"/>

                        <p:outputLabel value="#{myBundle.EditPyfntbpedidperLabel_observaciones}" for="observaciones" />
                        <p:inputText id="observaciones" value="#{pyfntbpedidperController.selected.observaciones}" title="#{myBundle.EditPyfntbpedidperTitle_observaciones}" />

                       </p:panelGrid>
                    <p:commandButton actionListener="#{pyfntbpedidperController.save}" value="#{myBundle.Save}" update="display,:PyfntbpedidperListForm:datalist,:growl" oncomplete="handleSubmit(xhr,status,args,PyfntbpedidperEditDialog);"/>
                    <p:commandButton value="#{myBundle.Cancel}" onclick="PyfntbpedidperEditDialog.hide()"/>
                </h:panelGroup>

            </h:form>

        </p:dialog>

    </ui:composition>

</html>
